<?php

namespace app\index\controller;

use app\common\controller\Frontend;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
        return $this->view->fetch();
    }

    public function yszc(){
        $article = \app\admin\model\Article::where(['title'=>'隐私政策'])->find();
        $this->view->assign('yszc', $article['content']);
        return $this->view->fetch();
    }
    public function yhxy(){
        $article = \app\admin\model\Article::where(['title'=>'用户协议'])->find();
        $this->view->assign('yhxy', $article['content']);
        return $this->view->fetch();
    }
}
